//
//  AddCarPeizhiTableViewCell.m
//  CarTown
//
//  Created by xionghao on 15/9/12.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "AddCarPeizhiTableViewCell.h"
#import "LongPeizhi.h"
@implementation AddCarPeizhiTableViewCell
+(instancetype)cellWithTableView:(UITableView *)tableview{
    
    static NSString *ID=@"beizhucell";
    
    AddCarPeizhiTableViewCell *cell=[tableview dequeueReusableCellWithIdentifier:ID];
    if (cell==nil) {
        [tableview registerNib:[UINib nibWithNibName:NSStringFromClass([self class]) bundle:nil] forCellReuseIdentifier:ID];
        cell=[tableview dequeueReusableCellWithIdentifier:ID];
    }
    return cell;
}

-(void)setPeizhi:(LongPeizhi *)peizhi{
    _peizhi=peizhi;
    self.titlelabel.text=_peizhi.name;
    self.longdetail.text=_peizhi.loogdetail;
    if ([_peizhi.loogdetail isEqualToString:@"请输入"]) {
        self.longdetail.textColor=placehodlerColor;
    }else{
        self.longdetail.textColor=textnormalGary;
    }
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
